package com.jiutong.meipenggang.ui.activitys;


import android.os.Bundle;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.jiutong.meipenggang.R;
import com.jiutong.meipenggang.base.BaseActivity;

import butterknife.Bind;
import butterknife.OnClick;

public class MsgItemActivity extends BaseActivity {


    @Bind(R.id.rl_common_title_back)
    RelativeLayout rlCommonTitleBack;
    @Bind(R.id.tv_common_title)
    TextView tvCommonTitle;
    @Bind(R.id.tv_msg_item_detail)
    TextView tvMsgItemDetail;
    @Bind(R.id.tv_msg_item_time)
    TextView tvMsgItemTime;

    @Override
    public int getLayoutResouceId() {
        return R.layout.activity_msg_item;
    }

    @Override
    protected void initView() {
        super.initView();
        Bundle bundle = getIntent().getExtras();
        if(bundle==null)
            return;
        tvCommonTitle.setText(bundle.getString("title"));
        tvMsgItemDetail.setText(bundle.getString("detail"));
        tvMsgItemTime.setText("2017-"+bundle.getString("time"));
    }

    @OnClick(R.id.rl_common_title_back)
    public void onViewClicked() {
        finish();
    }
}
